<?php include $this->getViewFile('/common/Head'); ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
   <?php include $this->getViewFile('/common/Nav') ?>
   <form class="J_ajaxForm" action="<?php echo AdminBase::U("edit") ?>" method="post" id="myform">
   <div class="h_a">基本属性</div>
   <div class="table_full">
   <table width="100%" class="table_form contentWrap">
        <tbody>
          <tr>
            <th width="80">旺旺号</th>
            <td><input type="test" name="nick" class="input length_6" id="nick" value="<?php echo $data->nick?>"></td>
          </tr>
          <tr>
            <th>拉黑原因</th>
            <td><textarea type="text" name="note" cols="60" rows="6"><?php echo $data->note?></textarea></td>
          </tr>
          <tr>
            <th>黑名单类型</th>
            <td><?php echo Form::select(BlacklistModel::model()->getTypeList(),$data->type,'name="type"') ?></td>
          </tr>
          <tr>
            <th>开始时间</th>
            <td><input type="text" name="start_time" class="input length_2 J_datetime" value="<?php echo $data->start_time?date('Y-m-d H:i',$data->start_time):''?>" placeholder="选择起始时间"></td>
          </tr>
          <tr>
            <th>结束时间</th>
            <td><input type="text" name="end_time" class="input length_2 J_datetime" value="<?php echo $data->end_time?date('Y-m-d H:i',$data->end_time):''?>" placeholder="选择结束时间"></td>
          </tr>
          <tr>
            <th>是否启用</th>
            <td><?php echo Form::radio(array(0=>'禁用',1=>'启用'),$data->disabled,'name="disabled"'); ?></td>
          </tr>
        </tbody>
      </table>
   </div>
   <div class="btn_wrap1">
      <div class="btn_wrap_pd">
        <input type="hidden" name="id" value="<?php echo $data->id?>">
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">确认修改</button>
      </div>
    </div>
    </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>